package com.niguang.work.api.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author chenliu
 * @since 2018-07-23
 */
@TableName("work_face_machine")
public class FaceMachine extends Model<FaceMachine> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 人脸设备mac
     */
    private String faceMac;
    /**
     * 闸机设备
     */
    private String mac;
    /**
     * 1--开门  2--关门
     */
    private Integer reader;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFaceMac() {
        return faceMac;
    }

    public void setFaceMac(String faceMac) {
        this.faceMac = faceMac;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public Integer getReader() {
        return reader;
    }

    public void setReader(Integer reader) {
        this.reader = reader;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public static final String ID = "id";

    public static final String FACE_MAC = "face_mac";

    public static final String MAC = "mac";

    public static final String READER = "reader";

    public static final String CREATE_TIME = "create_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "FaceMachine{" +
        "id=" + id +
        ", faceMac=" + faceMac +
        ", mac=" + mac +
        ", reader=" + reader +
        ", createTime=" + createTime +
        "}";
    }
}
